<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%@ include file="/common/operatehistory.jsp"%>
<%
	Integer id = input.getInt("id");
	List<Map> list = QBuilder.db("basedb").select("new map(u.id as id, u.type as type, u.avatar as avatar, u.gender as gender, u.name as name, u.userName as user_name, u.nickName as nick_name, concat(FROM_UNIXTIME(oh.cTime/1000,'%Y-%m-%d %H:%i:%s'), '') as create_time,u.id as uid)").from("OperateHistory as oh, User as u").where(new Where("oh.oid=", id).and("oh.category=", STEP_CATEGORY).and("oh.status=", STATUS_ENABLE).and("oh.uid=u.id").and("oh.operate=", LOVE)).query().getResultObj();
	for (Map map:list) {
		String cTime = map.remove("create_time") + "";
		User user = User.fromMap(map, User.class);
		map.put("avatar", getDefaultAvatar(user));
		map.put("user_name", getDisplayName(user));
		map.put("name", getDisplayName(user));
		map.put("create_time", cTime);
	}
	msg.put("data", list);
	Tools.encryptPrint(out, msg.toJson());
%>